package com.ptc.ims.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditProductEvent 
extends GwtEvent<EditProductEventHandler> 
{
	public static Type<EditProductEventHandler> TYPE = new Type<EditProductEventHandler>();
	
	private final String productId;
	
	public EditProductEvent(String productId) 
	{
		this.productId = productId;
	}
	
	@Override
	public Type<EditProductEventHandler> getAssociatedType() 
	{
		return TYPE;
	}

	@Override
	protected void dispatch(EditProductEventHandler handler) 
	{
		handler.onEditProduct(this);		
	}

	public String getProductId() 
	{
		return productId;
	}

}
